<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>文件编辑</title>
<load href="__JS__/jQuery/jquery.js" />
<load href="__JS__/jQuery/jquery.form.js" />
<script type="text/JavaScript">
      $(function(){
          $('#form1').ajaxForm({
              //beforeSubmit:  function(){alert("before");},  // pre-submit callback
              success:       complete,  // post-submit callback
              error:function(){alert("error");},
              dataType: 'json'
          });
          
          function complete(data){
              if (data.status==1)
              {
              	window.location='__URL__/download/id/{$id}';
              }else{
                  $('#result').html(data.info).show();
              }
          }
      });
</script>
</head>
<body>
<layout name="Auth:header" />
<iframe src="__URL__/menu" style="position:absolute; left:40px; top:350px; width:180px; height:190px;" frameborder=”no” border=”0″ marginwidth=”0″ marginheight=”0″ scrolling=”no”></iframe>
<div  style="position:relative; top:-70px; left:240px; font-size:12px; width:60%;">
  当前位置：
<a href='__APP__/index/index'>主页</a>>
<a href='__URL__/index'>课程展示</a>>
<a href='__URL__/course/id/{$id}'>{$coursename}</a>>
<a href='__URL__/download/id/{$id}'>资料管理</a>>
资料修改
</div>
	
	<div align="center">
		<form id='form1' method="post" action="__URL__/fileupdate" >
		<div id="add_college">
			<div id="form_list">
				<div id='result' align="left" style="width:63%; color:red; font-size:12px;"></div>
					<table border="0" align="center" cellpadding="0px" cellspacing="0px">
						<tr style="background-color:#EAEAEA">
						<td width="400" >文件名：{$vo.name}</td>
						<td width="400">作者：{$vo.nname}</td>
						</tr>
						<tr>
							<td width="400" >修改文件名称：<input type='text' name='name'>
						</tr>
						<input type="hidden" name="id" value={$vo.id}>
						<input type='hidden' name='courseid' value={$vo.courseid}>
						<tr><td></td><td align="right"><input type="submit" value="更新" style="width:90px"></td></tr>
						</table>
						
			</div>
		</div>
		</form>
	</div>
</body>
</html>